import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: VBEN_LOGO_URL,
      order: 3,
      title: '出库',
    },
    name: 'StockOut',
    path: '/stockOut',
    children: [
      {
        name: 'StockOutIndex',
        path: '/stockOut/index',
        component: () => import('#/views/stockOut/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '出库',
        },
      },
      {
        name: 'StockOutRecord',
        path: '/stockOut/record',
        component: () => import('#/views/stockOut/record/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '出库记录',
        },
      },
      {
        name: 'StockOutPrint',
        path: '/stockOut/print',
        component: () => import('#/views/stockOut/print/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '手动出库',
        },
      },
    ],
  },
];

export default routes;
